package com.qf;

import com.qf.dao.DepartmentDao;
import com.qf.pojo.Department;
import com.qf.utils.MyBatisUtils;
import org.junit.Test;

import java.util.List;


public class test {

    @Test
    public void testQueryAll(){
        DepartmentDao mapper = MyBatisUtils.getMapper(DepartmentDao.class);
        List<Department> departments = mapper.queryAll();
        for (Department department : departments) {
            System.out.println(department);
        }
    }
}
